var a_left1 = echarts.init(document.getElementById('l1'), "dark");

var a_left1_option = {
    title: {
        text: '各专案呼通量',
        subtext: '',
        left: 'center'
    },
    tooltip: {
        trigger: 'item',
        formatter: '{a} <br/>{b} : {c} ({d}%)'
    },
    legend: {
        orient: 'vertical',
        left: 'left',
        data: ['xx外呼', '产品推销', 'xx专案', '社区访问', '满意度回访']
    },
    series: [{
        name: '访问来源',
        type: 'pie',
        radius: '55%',
        center: ['50%', '60%'],
        data: [
            { value: 335, name: 'xx外呼' },
            { value: 310, name: '产品推销' },
            { value: 234, name: 'xx专案' },
            { value: 135, name: '社区访问' },
            { value: 548, name: '满意度回访' }
        ],
        emphasis: {
            itemStyle: {
                shadowBlur: 10,
                shadowOffsetX: 0,
                shadowColor: 'rgba(0, 0, 0, 0.5)'
            }
        }
    }]
};

a_left1.setOption(a_left1_option)
window.addEventListener("resize", () => {
    a_left1.resize();
});